package org.amos.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.Collections;
import java.util.List;

@Data
@RefreshScope
@ConfigurationProperties(prefix = AuthFilterProperties.PREFIX)
public class AuthFilterProperties {

    public static final String PREFIX = "amos.security.auth";

    /**
     * 白名单URL
     */
    private List<String> excludeUrls = Collections.emptyList();
    /**
     * token 验证通过才能访问URL
     */
    private List<String> includeUrls = Collections.emptyList();

}
